<template>
  <footer>
    <ul>
      <router-link
        v-for="item in list"
        :key="item.title"
        :to="item.url" tag="li"
      >
        <span class="iconfont" :class="item.icon"></span>
        <p>{{ item.title }}</p>
      </router-link>
    </ul>
  </footer>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          icon: "icon-dianyingpiaoiocn",
          title: "电影/影院",
          url: "/home/movies"
        },
        {
          icon: "icon-shipin",
          title: "视频",
          url: "/home/video"
        },
        {
          icon: "icon-xiaoshipinyingshi48",
          title: "小视频",
          url: "/home/mini"
        },
        {
          icon: "icon-yanchu-xianxing2-0",
          title: "演出",
          url: "/home/show"
        },
        {
          icon: "icon-wode",
          title: "我的",
          url: "/home/mine"
        }
      ],
      acindex: 0
    };
  },
};
</script>

<style lang="less" scoped>
@import "../../assets/css/var.less";
footer {
  display: flex;
  height: 50px;
  width: 100%;
  background-color: #fff;
  font-size: @xs-size;
  position: fixed;
  bottom: 0;
  left: 0;

  ul {
    display: flex;
    width: 100%;

    li {
      flex: 1;
      .center();
      flex-direction: column;
      color: @font-color;
      span {
        font-size: @xl-size;
      }
      p {
        margin-top: 3px;
      }
    }
    .router-link-active {
      color: @theme-color;
    }
  }
}
</style>
